<?php
//if not a real page (nobody called us here, just user trying to hack
if ((!isset($_SESSION['realpage']))
 || ($_SESSION['realpage'] == false))
 {
 	require './hack.php';
 	die(" ");
 }

error_reporting(E_ALL);

/**
 * untitledModel - class.User.php
 *
 * $Id$
 *
 * This file is part of untitledModel.
 *
 * Automatically generated on 16.11.2011, 20:10:36 with ArgoUML PHP module
 * (last revised $Date: 2010-01-12 20:14:42 +0100 (Tue, 12 Jan 2010) $)
 *
 * @author firstname and lastname of author, <author@example.org>
 */

if (0 > version_compare(PHP_VERSION, '5')) {
	die('This file was generated for PHP 5');
}

require_once('class.Group.php');

require_once('class.Post.php');

class User
{

	public $uid = 0;
	
	public $birthday = null;

	public $Handle = null;
	
	public $Password = null;
	
	public $FirstName = null;
	
	public $Surname = null;

	public $About = null;

	public $Email = null;

	// --- OPERATIONS ---

	public static function factorUser($sqlArr)
	{
		
		$usr = new User();     
		$flags = ENT_COMPAT | ENT_QUOTES ;
		
		$usr->FirstName	 = htmlspecialchars ( $sqlArr['first_name'],$flags ,'UTF-8');    //$sqlArr['first_name'];
		$usr->Surname	 = htmlspecialchars ( $sqlArr['sur_name'],$flags ,'UTF-8'); 	 //$sqlArr['sur_name'];
		$usr->Handle	 = htmlspecialchars ( $sqlArr['handle'],$flags ,'UTF-8');		 //$sqlArr['handle'];
		$usr->birthday   = $sqlArr['birthday'];
		$usr->uid		 = $sqlArr['uid'];
		$usr->Email		 = $sqlArr['email'];
		$usr->About		 = str_replace("[dropline]", '<br>',htmlspecialchars ( $sqlArr['about'],$flags ,'UTF-8')); 		 //$sqlArr['about'];
		
		return  $usr;	
	}
} /* end of class User */

?>